Pre-Formatting steps

I added the steps that need to be taken before the files can be given to
the parser. If there are no exceptions after this, then the output
should be good.