Updated

Writes stats to text file
Updated

Writes stats