bugfix in r.merge

bugfix in r.merge, updated commets
Merge pull request #15 from 1karu5/master

bugfix in r.merge