Added documentation to the physics engine.