Fixing a couple bugs in hist.go and errors in the Thrift tutorial