fixed minor bugs and got add friend to work ;)