Relocated all doctests to end of module.