minor edits and a bit more on matrix

Expanded on the matrix example and added some stylistic changes