changed API to support only one type: INodes
refactored test to new api
changed Validator api to fit new node API
Merge branch 'api-simplify'