implemented friend deletion
small fixes
added infinite loop check
potential seg fault
proper fix for segfault, credit to manuel-arguelles
Merge pull request #15 from JFreegman/master

implemented friend deletion