Added error catch to prevent multiple creating of logs. Also updated error messages
Deleted unnecessary files