Critical fix so threads are created as detached
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
Merge pull request #105 from ayshih/test

Critical fix so threads are created as detached