added opening file of points, compare methods for x and y to be used as merge parameters, and distance method