Copy of Johann's gcode cleaner, but in c#