Add d3 output. Fix Vector#from_a. Minor tweaks