Removed debugging; increased no. periods to 100
Removed debugging; caught sim->run() exceptions