Adding a writer to write experiments' events to help me debug.
Logger Debug overwrites the existing file.
Debug logger is called when creating the xp engine.
bug correction when creating the file: solved.