hpc: Output a legend at the top of output files