Added the code to get/set the matrices and solve (inverse) them.