added addTorque API
organized header comments