Re-include downsampling prior to instrument correction in the preprocessing.

Modify generate_input_files so that event_tag is passed to the writer. This ensures that ses3d input files with correct event labels are written.