Moved point functions to point.h
moved some more stuff around, wrote tests for distance function
added h_distance but untested