Minor bug fixes and enhancements (I hope):

Delimited expressions within function calls to prevent denominators from continuing beyond commas.
Allow latex to adjust size of parentheses according to expression within.
Replaced ^ with \uparrow (less misleading - latex maths doesn't understand operator precedence or words).
Replaced abs(x) with |x| when x does not contain brackets.