input n_event from parameters.dat
add some comments