Fix code examples

Not all of them though, I got bored
Merge pull request #3 from sch/patch-1

Fix code examples