Added Checkstyle and change in style

added checkstyle xml file with jar file to include checkstyle in build.
Changed all java files for consistent coding style.