Fix some mistakes in the api docs

Quoting style is now consistent and got rid of some typoes in the code snippets.
Merge pull request #6 from Blitz2145/patch-1

Fix some mistakes in the api docs