cleaned up some code
added scripts that run on physicsupdate