Fixed the simulation and added README