Cs fixes

I added a JSHint config file to check (the current) code style and made the code (mostly) consistent with it.
Cleanup for comments
Cleanup for comments
Merge pull request #84 from tersmitten/cs-fixes

Cs fixes