Added offsetting of gcode for specific axis, extrema finder for gcode