added comments to math