refactor: use json schema to validate models
delete unused code
remove console.log
Merge pull request #29 from yaplas/refactor/validations

Refactor/validations