initial restructuring, need to change to use gcc optimizations after debugging, need to fix seg fault, need to enable physics