Enrich the example base.

I'm working on getting more interesting and useful examples.

In the process I found some bugs in the implementation, which I fixed. #54.