Code for Writing Files/Folders

Wrote the code to actually write the .csv and .pdf files.