Adding a final function needed before some test runs. Will add some text edit distance or
greatest substring function later; want to eyeball some results first.
More drafting...forgot some essentials; updated some comments, etc.
Almost there.