gcode output for mach3 is now working. also fixed a couple of typos and
added version number and gcode variant to comments in the gcode output.