added possibility to write to and read from file, added simulation data and plot as reference solution