README code examples

Fixes some examples in the README and adds ruby syntax highlighting.