Fix whitespace and other style issues

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