Documents most of the comments in d2d.friendship.inc