Fix errors found in API documentation