Adds comments to explain calculations