Fixed a couple of bugs, added riemann sums method.