updated text files and simplified code