added frame histogram
moved fit.C to fit.py