Refactored Physics; objects.

Now it seems much more extensible.

Moved class functions to the objects file, aswell.