Changed `nodes` to be an unordered map for quicker look up of nodes, added sending out messages to nodes