Typo fixes
Typo and formatting fixes
Fixed warning in doc example

Fixes gh-1306
Merge pull request #1307 from delallea/minor

Minor fixes