added more comments to the calculator code