Added computation of classification rate and logging'