add documentation for mquery and maggregate