Update doc examples. Closes GH-42.

Hi! This updates the examples in the docs and fixes issue #42. Thanks!