Added basic calculation and display of area under the curve