Point->distance and some minor fixes