added a check in addFriendController for already-friended individuals and reorganized search data structure