print rename and add comments to NewtonAlgorithm