Rewrote query and node parsing
Rewrote D3 selection and insertions