Added check for duplicates, removed duplicates.
Merge pull request #3 from Lemmings19/remove-duplicates

Added check for duplicates, removed duplicates.