adaboost samme, some other fixes