Complete rewrite. Still not in usable form. Will read input file from filename specified on command line. Currently uses "GD" module for plotting. Planning migration to gnuplot.