Detect tool changes from sent gcode
Fix typo