update the communication doc with some code samples.