comments

add comments to the functions