updated file reading operations to be able to work with a file of multiple lines
updated text file to just use demand values
added function to read new input file