Code for processing output from Engauge Digitizer