add function to center the matrix vars
correct comment
add function to scaling a matrix