checked for mismatched parentheses, added todo lists