Added doc for removeDuplicates