I've been building this post for the last couple weeks when I have the time, but I have found a problem that I cant seem to crack.

this is what my post is kicking out:

O0001
N100G92X0.Y0.
N110G42D0
N120G01X-10.Y10.
N130X10.
N140Y-10.
N150X-10.
N160Y10.
N170G40
N180X0.Y0.
N190M02
% <---- dont want this

this is what it should look like

%(0001) <---- this would be nice too
N100G92X0.Y0.
N110G42D0
N120G01X-10.Y10.
N130X10.Y10.
N140Y-10.X10.
N150X-10.Y-10.
N160Y10.X-10
N170G40
N180X0.Y0.
N190M02

Its like a half breed between abs and inc.

Any help would be greatly appreciated