Folding and Unfolding now work for one branch trees. Some testing is needed