stochastic minimization, testcases, numerical gradients and several
improvements for sequential reading of data from various sources.