Display error when schema is invalid

Resolves #46
Merge pull request #47 from theodi/schema-validation

Display error when schema is invalid