add %doctest and %cont-doctests to chapter18.tex for Tutorial docstring testing