added various options such as plot the approximation rectangle to show how the area below a graph is approximated