add checkstyle to project
refactored given checkstyle.xml
minor cleanups for checkstyle