Improvments of the Regualar Expression matching
Improvement of the for loop to run through the lines of the files