Made small syntax change
Wrote bulk of simulation, no print to file. Untested.