doctest: Added introduction.

WIP for #7
Integrated doctest in package docs