TYPE: enhancement Currently no logging to file is done. This should be added and would at the same time be a good time to review error handling.