remaining bugs fixed. mlim is now not a proportion of cov. matrix.