Fix typos

Fixes two documentation typos and one function name typo.