Working on getting some measure of testing in there.
Added tests for existing things I figured out
Refactor into a package.