Added logging -g flag

Fixed whitespace
Merge pull request #137 from StevenHickson/master

Turned logging off and added a -g flag to enable logging