fix skew and rewrite UpdateMatrix

Manual setting matrix a,b,c,d Now