- bugfix for checking friend list
- added some comments