Enable checkstyle and fix issues