I find your code works fairly well, but I do get bleed-over when movement continues before the laser is fully shut off. I can manually correct this by adding G4 P400 commands to the GCODE file (post-processing). It would be good to have a feature to control pre- and post-dwell amounts (similar to the JTech Lasercode extension to Inkscape).
Thank you