Ken's Submission

Commit d116767 (mine) is Ken's submission, verbatim.  Any later commits are fixes to get it to run, etc. as necessary