created new function for message decoding. added buffers for routing which are not yet used. Need to buffer messages until decoded and decide which side can write to which output