adding d3-plugins, code updates