Added function to produce edge illustration
Heavily optimized peak finding (now a lot faster), due to GoFast switch; also added return value to vertex-based correction function so the value can be used directly