Fixed #62

- Closes bug #62 - Friend list not ordering correctly
- Added debug output to friend list generation