Added duplicate name checker function. get_name gets new name if duplicate.
updated