merge-tree: add comments to clarify what these functions are doing