Changed read.in and updated main to read in correctly.