Integrated the simulation into the graphical interface. Fixed a bug in the initialization of the simulation.