Add doctests to maartens_sage_functions.py