Added a header to the output file for SED data and changed its format slightly.