Fixed computation of tsys, exposure time and recording of units.

Also added version of pipe to header.