made TypeDump return the info and a separate func to print it.