Ran checkstyle and fixed warnings