added comments to triangle