revert "in" statement parsing function.
updated comments and variable name to address comments from PR #914.