added proper node deletion in tree
execution of basic commands