Merge pull request #3 from rterp/master

Merge recent changes
Checks for undefined and draft idea for dealing with boolean values.
Merge pull request #23 from GeoffCapper/master

Checks for undefined, initial idea for boolean handling, per issue #22