More LaTeX tweaks: reduced space before opening parenthesis in function call; replaced lists and tuples with \left etc. instead of matrices