corrections in saving and loading parameters, use new parameters epoch
length, window length, delete temp file.