add validate() function, fixes #7
camelCased variable, per convention
version 0.2.0