Update README.md

Completely revised the example code in the readme to be complete