Initial commit, NOT INTENDED FOR PUBLIC USE

Completely uncommented, borrowed code uncited, etc.  Just storing it
here because it finally works