Improve write_header().
Rename int_params int_imaging_params.
More complete parameter checking.
Add verbose messages.