Add logging and catch 'NoneType' errors

Also added a bat file which will conveniently pause so you can see any
errors before it exits.
Merge pull request #1 from vrillusions/master

Catch 'NoneType' errors