Fixed det(H), various other bugfixes