Bugfixes and extending the header records

Signed-off-by: Adam Dybbroe <adam.dybbroe@smhi.se>