checkstyle was configured incorrectly. Fixed the pom to actually

use the correct checkstyle file and also updated the checkstyle
file and fixed all errors and warnings.