HW14 with tests

A little more polished, with basic (incomplete!) test files. Some hidden
errors that I got to work out, which was, dare I say it, sort of fun. :)