Proof of concept

The code including tests is all in one file. Just enough to prove the idea works the way I want to. Lots of debug output remains in place. The Code needs refactored.