update test.sh to install.sh
some syntax fixes and code written
add comment in graph.js insertNode method
add comment in index.js buildGraph method