Fix code examples (fixes #4)

Couple code example fixes.

I've signed the CLA already.