bugfix in r.merge

bugfix in r.merge, updated commets