Add a new library 'ode.nls' and clean the code