removed rescaling option from downsampling, not used any longer. If needed later better make a separate function that does the rescaling.
some commenting and cosmetics in downsample.cpp
warning added for depreciated keyword downsamplingrescale
nhits counter was incremented twice, uncommented the respective lines in hitfinder.cpp
Added check whether the darkcal file is associated to the right detector.
Merge branch 'testing' into max
tested new darkcal check.