moved saving variables to fits header keys closer to finding values
small bug fix
Merge pull request #103 from ehsteve/master

Moved saving variables to fits header keys closer to finding values