Fix whitespace and other style issues

Not sure if you're interested in these kinds of changes, sending them anyway. :-)

* And line break on last line
* Auto-format using IntelliJ
* Rename members starting with uppercase letter
* Remove excessive blank lines
* Remove unused imports
* Tweak .gitignore