some stuff
wrapped the main into a SimulationViewer class