Added d3 lib
Added new config
Fixed an issue occuring when active is initially -1
Minor formatting
Turned the tree upside down