refactored code to make it runnable via node on the command line; added build.sh script because I haven't gotten makefile to run on windows.  Removing thegraph.dot from version control.