Refactored lookup_name to return all names found. lookup name formats names and resolves ambiguities.