code documented
new matrix added