Add some comments to some files

Add comment to files for easier understanding of the functions and
properties.