allow logging to file.
Fix calculation of MC scaling to data: don't do this for every bin
separately (stupid me!) but for every mass calculate the integrals
ans the resulting MC scaling factor. Apply it to every bin.