Modality before Distance, Reduced experiment time

Changes requested by Ivan
Add counter for dark frames and image frames

- Optimize log file output
- Adding counter for dark frames and image frames
- Threshold is now only calculated once
- Final plot tells how many images were used for darks and frames
Updating manual selection process

The update enables fully un-attended runs of the script without any
plots popping up.