I think all I need to do now is get a good step size so I avoid infinities.  I think it's working otherwise.