Comments added

I added comments to all the variables and functions.