added numIterations and sumSquare info; minor fix