Made changes for simplified purposes to read a text file