Made some changes to the Framework, especially in the physic module.