Implemented automatic switching between select button and remove button for references
Implemented distance constraint
Implemented ability to add two OnWire constraints to define an intersection
Restructured some code to be reused more easily