Fix indentation in docs code examples

Fixes indentation mistakes I made when writing the docs the first time.
Merge pull request #179 from hdgarrood/fix-indentation

Fix indentation in docs code examples