updated moving avg, working on getting a histogram
updated moving avg and histogram