Tested on two actual sample files and had to fix some stuff in the printing section.  It
now works with two sample files.