- deleted obsolete result files
- added 2 error cases and error handling