added comments to everything