Added expectation and variance exceptions, and getHelp, getExpectation, getVariance methods.