add comments; fix checkstyle problem.