Added histograms and changed testing_framework.py