Suggested update to runsimulation.py

A few changes have been made. See comments in the source.