multiple changes to "mod" version, including improvements to allow filtering, a single printout sub, etc.