Add extra protection for empty list of graphs
Added a method to calculate the integral of bins above function y=f(x) provided by the user