Added QueryObj class to print out a hierarchy. Contains a download function to download anything that gets printed out