Reformat code for Intellij IDEA

Closes #22