Fixed various spelling and grammatical errors in the API documentation.