Error corrected
And made a few tests, speed is not alterated by the new implementation
of the file reading.