bug with maxiter in gdmtrain
more readable code for Base.show NNLayer