Correct and complete some api documentation.