Move matrices to their own file.
Add matrix product to code.
Improve the comments before I forget.
Change order of functions.