ETD stepping algorithm plus other functions
stepping loop completed, added function for nonlinear part