modified levmar stopping criteria a little bit
added NLCG, seems ok