Correct errors in code snippets in documentation.
Merge pull request #441 from jaredhoberock/doc-fixes

Correct errors in code snippets in documentation.