Added functions to read data and print plot1.png