added line numbering in gcode mode