Added saving to .txt file the cum data
changed again saving to the textfile
started adding fit function of the data