added text files
modified code