outline for lmtrain done

needs some more work with jacobians and what not