improved LBPMain. added ability to export histograms