I added comments to code

I added comments to code so that it can be understood