Comments added

Comments added for each function