Additions to the ruby-only version, and the requisite refactoring and assertions with that

@phlco So I used the ruby-only version as a test case for logging and assertions, and they seem pretty solid. The ruby-only version also works out of the box.

Some other file cleanup to make the final scripts more readable, especially removing unused function helpers, etc.