Moved the scan plotter to use a custom object as opposed to the very primitive use of vectors of pairs pushed in a specific order.