Cleaned up newton.jl
More cleanup of newton.jl