created scripts that compare the vm with the simulation. fixed some errors in the vm and sim.