fix parens validation if they match

fixed nested paren symbol method to ensure they match the equivalent open symbol. also added a few comments to help for readability.