updated read in to ignore bad and duplicate points.