fixed some minor bugs in the code.  Started on the add friends function