Lots of changes, will explain in a later commit
Started work on massive refactor

-Files will no longer be written unless all rows are processed properly
-The methods in the main loop are greatly decoupled