More fixes to gcode, uncommented empty gcode check