workaround for NT delay issue

there is an issue while removing files on NT systems, it may delete
before the file is closed when using more than one CPU/core. this
workaround inserts a leap second before the file removal.
allow a different p value for the 'percentile' correction method

instead of forcing the same value as the detection probability.
changes on the detection, launcher, parameters and UI.