Working Program

Needs commenting, and debugging on deletion of root node