Add methods for readin/writing stats from file
Changed write/read methods names