circlefit analyzes a G-code file, then replaces blocks of successive G1 commands that represent arcs with the appropriate G2 or G3 arc commands.