Minor code corrections

The validation check was not working as the prior average was always
smaller than the current average.
Also, some printing lines were removed, others changed.