I fixed a bug where the generations.txt log was endlessly appended to in later runs.  The fixed version opens a new log on the first generation, and then appends to this file during the execution.