Code cleanup

Fixes #1. @dangoor 

/cc @pthiess - after this is merged, the log format will have changed, so you'll need to delete the old log file if you want to run this again on your test repo.