added options parameter for createValidator
added docblock for validate invoker
maked sure isValid return bool value