Improve testing, add expected value and variance functions
Merge pull request #11 from VividCortex/expected-value-variance

Improve tests, add expected value and variance functions