Added convenience function to echo custom query. Corrected documentation for custom query getter function. Removed unnecessary declaration of global .