Update to EMR helper scripts and files.
Add function `write_file`.
Merge pull request #35 from ooda/emr

Emr