Added ability to run multiple trials, also output results into csv, Still lots to do...