Reworked The Way File Creation Works & Organized Code Into Functions