remove semicolon comments
handle S command, ignore T, G04, G40, G49, G54, G61, G80
make G0..G3 modal and allow for them to be omitted