added d3 source and various grammar fixes