adding checkstyle and fix warning