fixed docs

doc strings were not being generated correctly for Query, now fixed