(1) kramers adaptation is done subspace by subspace. (2) enforce that the transformation is unitary
bug fix