Separating functions

I don't want to pass arguments through the parent function...
Added qual flag to read_in_fits