Revised `comm.py` to reflect current understanding of communications protocol.