bugfix in labeleddataTrans, and added functionality to train_softmax