minor typos for API
fix example
Merge pull request #4110 from antograssiot/3.0

3.0 typos for API