Updated readme

- fixed example code
- improved formatting