added Github flavoured syntax highlighting to code samples in README.md

I put all code samples in README.md in Fenced code-blocks (enclosed in triple backticks, ```). This turns on syntax highlighting in Github Flavoured Markdown.

Plus I fixed a minor typo.