commented and documented the simulation debugger