internal updating of matrices
updated readme