added comments to calculator code