changed classification api, added balanced learning for classifiers