Update README.md

Fixed issues with code in readme
Merge pull request #6 from tractorcow/3.1

Update README.md