fix linter errors (undefined variables mostly)
Merge pull request #339 from rlidwka/lint

fix linter errors (undefined variables mostly)