fix dictionnary class implementation and add a saveHisto function