Added a check for invalid variable names.

Fixes #99
Merge pull request #110 from stof/variable_check

Added a check for invalid variable names.