added and corrected classes for adding friends

it seems to work propertly, need to be tested in depth.