Fixed some major bugs
Writes a clean conf now after replays