Configure checkstyle and apply warnings

Add checkstyle configuration file, and apply styles for javadocs.