renamed things in parse, added logic for alternation within parenthases