Yet more polishing and primping. Added function top-and-tail, which
seeks to ensure that if possible the output starts at the beginning
of a sentence and ends at the end of one.