Add save data to list and plot using MatPlotlib

Storing all data in lists enables the use of MatPlotlib to plot the data
and is also faster than writing all data to a file