wrapped main into try-catch to catch unexpected exceptions
Removed TODO
Changed logger to log in file
Removed TODO