Fix errors, add precisions, and update logger. DiagCovMat don't work