Initial upload/import of append_to_envi_file.py
Minor modifications to code structure.