Header formatting

Caught and dealt with header rows, assigned to array ready to write to
file