addNode method updated, sendData and removeData methods added