Added a checkstyle test.
Fixed whitespaces.