fix: Some minor fixes incluing D_ and the initialisation of C_ and invsqrtC_