RemoveMaster function added

Fixed some variable errors in CCOR compatibility script and added the
RemoveMaster function to mteFunctions.pas.