Updated covarances and fixed a few other bugs