Adds commenting to the functions, per the assignment.