Basic examples don't work

The basic example doesn't work for me. These commits will hopefully illustrate why, and fix them :)