added validate to document methods

I added this for a project I am working on to keep the code consistent. Mainly, I hate writing out Q.ninvoke unless I absolutely have to so I've found your library very helpful. The tests passed.