added d3 scripts and other minor changes