Modifications to script to resolve github issues #1 & #4
Created using updated version of ioos_template_example.py