Extended the code styling to the forces and torque computation