write data type for Node, add some constants for Message Ids