Merge pull request #468 from ndawe/master

[MRG] fix weighted covariance