addition of d3 graph (largely in progress)

...and a few assorted changes