Added setter of excludeSame, fixed some comments