Write mergeCells in the right place with a string join
Replace string addition with writing directly to file
Add missing error checks
Merge pull request #11 from sean-duffy/mergecells-fix

Write mergeCells in the right place with a string join