Added Checkstyle to project and applied formatter.