update doc/tutorial with doctests