added function and code to eliminate near-duplicate lines, that are parts of a group birdingentry. Keep only one line from each group.