Add missing documentation, and fix typo.