Extracted creation of receive and transmit chan. Changed so that Each node is the server for its own Receive port and client when transmitting