id added to list of trees
as.JSON exported
functions made internal
example added