Fix a few things, made d3 embedable and added popover