Add maven-checkstyle-plugin, cleanup and reformat.