Added error logging for exceptions
added newline
Added petty EOL
Fixed cs shit
Merge pull request #236 from GeeH/master

Added error logging for exceptions