The code with modularity incorporated to read batch files and generate processed batch files