Use indmax and initialize parameters with 0
Use softmax from NumericExtensions

... and get rid of returns