add d3 to bower.json and other minor changes