Introductory tutorial

Also made the documentation doctests part of the unit tests