add comments

Add the basic comments of the functions
Add contents to the functions

add the contents to the functions