added comments

added some comments to make things easier to understand