minor error corrected. Now reads from file. Functions as expected