Modifed the physics engine and fixed a few parameters.