Updated documentation
Fixed deletion of duplicates