Fixed many errors when handling vertical valve detection. Added new debug window with the triangualted points.