script for generating stats from simulation