Started fixing the nodes module and moving towards the full implementation of the protocol.