fix up bin settings a little bit
clean up the python script to use some functions
add in comparisons of integrated charge and the average time