fixed comments
made stats recording better