It seems I will never put this program to rest. Here is the lastest version of the program.
(Be patient if you use the default data file in the blank, it works!)
And here is my default data file tom.dat.
I also have the original version available which I turned in for class.