added ability to specify leaves as trees (you may use a leaf structure as a tree)
added ability to specify leaves as trees (you may use a leaf structure as a tree)