Add checkstyle rules and adjust rules

Rules taken from https://github.com/stanfy/java-code-style
Merge pull request #61 from stanfy/roman/checkstyle

Add checkstyle rules and adjust code