Update readme code snippets to exlude extra empty lines

I suggest a convention in markdowns - when writing a code sinppet, remove extra lines at the end.
It's not that important, but I think it looks much better.

Anyhow, I guess what's missing is some kind of consistency :smile: