restructuring header_records to follow documentation more closely.
adapted changes to MSG.

Signed-off-by: Sauli Joro <sauli.joro@icloud.com>