clean up and add defines for variables used in gcode processing