provide default value for id2idx
improve verbosity for debugging
improved script
this is now just a PH histogramming test