Refactor, use a unit testing framework
Convert everything to ASDF systems, with at least one test for each
problem