Fixed some more code in the readme file

There were some more errors in the code snippets.