moved gcode parsing to endpoint, do margins and flip with svg transforms instead of messing with the gcodes
typo