Minor updates

1. Update on server when checking if c1 and c2 are already friends
2. comments in editFriends
3. rename some variable for clarification