Fixed a small bug in readimfits. Just noticed that I'm not sure why I made readimfits the way it is. I should probably keep track of that...