Cleaned up some of the formatting, spacing and missing semicolons.
Merge pull request #22 from jonkemp/fix-formatting-issues

Cleaned up some of the formatting, spacing and missing semicolons.