Implement more of ptree. go fmt.