Extract check-style module.

Also fix any checkstyle warnings and errors that were raised.

Fixes #2
Merge pull request #7 from PressAssociation/extract-checkstyle

Extract check-style module.