Fixed typos in a bunch of docs

Found and fixed a bunch of typos. Most of them were in the API guide, but there were also some in topics and the tutorial.