moved lmtrain() to lmtrain.jl