fixed a bug, in the event of one term in one semester, such as the fall semester, the year was never set. Also minor changes in comments.