improve gcode header and footer for the LMN laser