Fix pyramid function. Fix typo in docs.