Fix bug in merge for sorting large files

Fix missing flags that are required when merging large sorted files.
Add a few missing comments.
Ignore mac .DS_Store