Frequent comments are now learned and can be inserted when grading.
Also updated comments, and separated out doGrade function to clean it up.