added constructor
Merge branch 'master' of github.com:aporat/iap-validator