Added doctests

Replaces #20