Added ML mode to simulator for running lots of simulations and printing training data to files