added distance method to Coordinates
added more geometric primitives
moved some stuff around