Bug fixing in physics system, performance tuning