fixed a few errors, made a script to run all simulations