now works with nested parens

TODO: roots, exponents, and error handling