Added some comments

I just added some coments in functions for easy undestanding after a two
or three years :-)