Fix code examples (fixes #4)

A couple of code example fixes. I've signed the CLA already.