Minor typo corrections in API documentation