Path-enclosed tree function: corrected some errors, tested a pair of augmented trees, changed some other things...