added alpha/beta histograms and fixing few bugs