changed whitespacing. Fixed parenthesis issues. Still doesn't properly handle dangling right parenthesis (will just compute everything up to that point and calc out).