added additional variables + a header
updated decode, to work with 4 channels, automatically read n_wf, get n hits, fitting negative landaus