edges.new - Edges Not Adding Correctly (black not solid orange)
Look like you are creating 2 new vertices per line, that's creating disjointed segments. Instead, just create a new vertex, then the new edge between the previous vertex and the new one, etc...