Remove unused functions. Change gcodes M52/M53 to M3/M5.