Fixed some typos and code blocks

I've fixed some small typos. Replaced inline code blocks to use one tick on each end (you don't need three for inline blocks). I've also added a missing ( in the API section and removed some unnecessary whitespace.