Some schema changes
fix documentation for schema. add an ability to use custom validator