Improved point dist algorithm, added methods