changed x-axis label
saving the data to a text file