ciaranspeakhw
So, I finally got it running.
Obviously, this isn't the ideal version, but it's functional, and reasonably representative of my coding style.
Thank you for the additional time; between the wind and power troubles, dealing with my roof has been a bit more time consuming than I would have liked.
The entire thing is way too verbose in what's written to stdout, but I don't recall off the top of my head how to write things to give various verbosity levels of output.
Oh, right, it's assuming the 20NewsGroup stuff that Michael suggested.