Adding comments

First commit to add comments of the functions