change sleep time from 100 to 10 milliseconds
store control histograms in a separate file with a given refresh rate