Added code to load NGALAXY header key from FITS file, ported create mock fits file to be OO style.