Docs and tests for estimateResidualVariance (fixes #58)