Add checkstyle rules and adjust rules

Rules taken from https://github.com/stanfy/java-code-style