modularised the readings generator, working on variance estimator.
finished variance estimator and testing.