Finished stats generation

Finished the stats generation code. Now at the end of the simulation it
will shoot out a bunch of tables.