Read/edit gcode file

Yes.

Yes, but with the caveat that you can’t repackage the entire file.

Here are the steps.