Fix bug and updates of collectdata for batch mode

- save analysis parameters
- remove bugs of wrong initial size of signaloutput