* adjusted physics code and fixed a few bugs
* entity_t "z" element is now type double instead of int