spanning_headers function

Spanning headers for outputs