some fixing
fix function call
more fixing
Fix definiion of the training error and the softmax layer