Verify files absent

Add a function in Main.hs to verify that the output files do not already exist.
Refactor the output functions into a separate module and add tests for them.