fixed some errors
Merge pull request #69 from b00nb0b/patch-02

Fixed some errors and made the example work again