Add linear algebra notes
Move MathJax macros to a template
Add clarification