modified stats workflow (fixed data write bugs and run only r00 and r0)