Re-added matrix inverse and transpose. Unbalanced parens now throws exception. Fixed matrix-scalar division.