There was added saving of tree to file