Fixing typo in comments.
Fixing check for exisiting output file when merging.