updating text file and fixing filename