Added functions sendHeartBeats and checkHeartBeats. Can now detect when a node has died