adding inertial parameters and making the switch to C++11