Programming assignment 2

Programming Assignment 2
Updated Comments

Updated the comments for the functions