New functions added (m.sd and lm_diag) with manuals.