Preliminary commit for postprocessing PDF creation; fixing bugs in FITS output [ci skip]