addPlot() and addTimespanPlot() both now return the added plot
Added AIOOBE check
Ooops, fixed logic error in getNearestPreviousValueAtTime()