Used checkstyle and fixed all checkstyle errors