Remove duplicate Tree generator code, add GZip Reader