moved to new script, added start and end points of simulation