added graph.js to the index.html
added graph.js to gitignore
fixed some null errors with intersect_line_box, and also a click radius on nodes fixes #10
added most snap functions