Reformat source code with IntelliJ IDEA preset

Some of this may be slightly off but it's better than it was
Merge pull request #36 from Kobata/style-reformat

Reformat source code with IntelliJ IDEA preset