Update README.md

I fixed a few typos, and removed optional public and return keywords in the Groovy sample.