Wrote SegmentMaker doctests.