Added some comments

Comments have been added to both functions