added some comments to my code