removed trailing spaces
made .lvl file optional
allow disabling of downsampling code
live analysis variant
example for single time execution