added checkstyle
fix a bunch of checkstyle violations