Some comments before submission

Commenting functions line by line.