Correction writeFiles and inclusion of a parameter in a method in the Graph class