change builds to maven and fix checkstyle errors