Commented and improved classSimulation.run()