changed dt and header info, plus added some stuff to the script so it doesnt fail if the directories do not exist