fixed example d3 ref and moved TODO items to separate file