saving files properly, much improvement needed, not sure if it added the txt files i've made