Added write out header info
Added write out header info