Unfortunately multiple changes: 1) Rewrite unreachable function; 2) lots of tidy up to function and variable names
fix comment and re-arrange our valid checks
Merge pull request #26 from nvasudevan/tweaks_to_grammar_valid_checks

Tweaks to grammar valid checks