Added method to Friend to update sent pieces count

Also added Doxymentation to Friend