add cmd line parameters for tmax and velocity