update TODO; added previousNode variable to graph nodes; added TO DO comments to graph.js