Adding comments for Programming Assignment 2 functions.