Fixed code quality violations; created custom checkstyle profile; Small refactorings