The variable KneeFlexion represent the moment created by the muscles around the knee axis, a guess this is what you call driving moment. The minus sign in the script comes from the way the moment is measured, it has been introduced so the sign of the value is coherent with the naming (KneeFlexion). So a positive value of the moment means a flexion moment and a negative value means an extending moment.