Its probably mainly simple scaling, If you delete any additional scaling components it should be about right.
Do you have a two speed spindle? if not, I dont see the need for the Tormach spindle component or
any other clap-trap the M3,M4 commands RPM number needs to be fed through