Fix spelling and typo mistakes in the API reference files.