Merge of new validator with tests

Per @gvwilson request (issue #34).
missing newline at end of file