Add worked examples to the tutorial.
closes #142
Merging upstream changes