Finished first pass through writing doctests. Someone
with magma needs to write one more and then we need
to run them all.