Added documentation for the callback functions for queryToArray and queryToStruct

Updated the docs to add documentation for the callback functions that were added to the queryToArray and queryToStruct api calls.