filenames fixed
fixed filenames, removed temporary file conditionals and edited flow