Histogram plot and initialisation modified