fix typo in docstring
fixed factor 2 bug in covariance_matrix