added D3 and Trig libraries