added logging to the simulation scripts