Changed convergence criterion to match that in the paper and fixed elementwise division bug in convergence calculation.