began d3 integration and fixed some data flow bugs