see extended description

-Made backup of project before making any changes

-added EndRun method to end simulation
-minor bug and formatting fixes