Fixed some issues in the communications service.

Documentation comments updated and so on.