Added support for names in the .txt file

Added support for names in the .txt file