Hopefully corrected another error in the merge subroutine.

Also updated the merge documentation.