Made sure lines aren't drawn twice. Added ability to connect endPoints. Probably other stuff I've forgotten about