fix for #7

Fix for #7 - added reference to _id when checking for duplicates.
Merge pull request #8 from chandika/patch-1

fix for #7