Header saving now works

Previously if I tried to save headers it would overwrite the original
odt file - which is really not ideal! It will now automatically save the
headers to a separate output file, along with the line number, which
makes it easier to plot in e.g. origin,matlab etc.