Added comments

Added comments to the functions in the code.