Example code fix
Merge pull request #24 from sharpyfox/readme_fix

Closes #23 and #24