Added variable v as well
Added routine to remove points if they get too close together