corrected closest/furthest point, added option to highlight