just corrected some minor problems

you need to add Righ-to-Left (dir=rtl) to lines so lines with parentheses will be shown correctly
(or we could just omit parentheses!)