Finished a rudimentary version of stat collection. This will need
to be combined with the gnuplot stuff so that we have graphs.