fix loops. Check for edges connecting point with itself. The point is not removed, warning is displayed. It is probably safer. plus some code polishing
fixed two points with the same coordinates after change in startup script. Check added