Updated example.jl for uniform interface and fixed maxiter bug in gdmtrain()