diff --git a/ising/metropolis/data/fit_autocorr_en.py b/ising/metropolis/data/fit_autocorr_en.py
new file mode 100755
index 0000000..4d3adc1
--- /dev/null
+++ b/ising/metropolis/data/fit_autocorr_en.py
@@ -0,0 +1,36 @@
+#!/usr/bin/python
+
+import numpy as np
+import matplotlib.pyplot as plt
+from scipy.optimize import curve_fit
+import math
+import sys
+
+filename = sys.argv[1]
+np.seterr(all='warn')
+lungh=20
+y_points = np.loadtxt(filename,dtype='float64',usecols=[1])
+		#= np.loadtxt('en_')
+y_points = y_points[ :lungh]
+x_points = range(len(y_points))
+def fit_fun(x,*p):
+	return p[0]*np.exp(x*p[1])
+
+x = np.linspace(0,lungh,100)
+guess = [1,-5]
+popt,pcov = curve_fit(fit_fun,x_points,y_points, p0=guess )
+
+AErr = math.sqrt(pcov[0][0])
+tauErr = math.sqrt(pcov[1][1])
+
+fig = plt.figure()
+fig.suptitle("Autocorrelazione dell'energia")
+ax = fig.add_subplot(111)
+ax.grid(True)
+#Mette le griglie su asse x
+#plt.xticks([i for i in range(0,lungh)])
+ax.text(10.2,0.4,r'Funzione di fit: $C(t) = A e^{-t/ \tau }$' '\n' r'$A=%lf \pm %lf$' '\n' r'$\; \tau=%lf\pm %lf$'%(popt[0],AErr,-1/popt[1],tauErr) , bbox={'facecolor':'green', 'alpha':0.5, 'pad':10})
+plt.plot(x_points,y_points,'ko',label='Original data')
+plt.plot(x,fit_fun(x,*popt),label ='fitted curve')
+plt.legend()
+plt.show()
\ No newline at end of file
diff --git a/ising/metropolis/data/fit_autocorr_mag.py b/ising/metropolis/data/fit_autocorr_mag.py
new file mode 100755
index 0000000..4828b5d
--- /dev/null
+++ b/ising/metropolis/data/fit_autocorr_mag.py
@@ -0,0 +1,39 @@
+#!/usr/bin/python
+
+
+import numpy as np
+import matplotlib.pyplot as plt
+from scipy.optimize import curve_fit
+import math
+import sys
+
+
+lungh=20
+
+filename = sys.argv[1]
+
+
+y_points = np.loadtxt(filename,usecols=[1])
+		#= np.loadtxt('en_')
+y_points = y_points[ :lungh]
+x_points = range(len(y_points))
+def fit_fun(x,*p):
+	return p[0]*np.exp(x*p[1])
+x = np.linspace(0,lungh,100)
+guess = [1,-5]
+popt,pcov = curve_fit(fit_fun,x_points,y_points, p0=guess )
+
+AErr = math.sqrt(pcov[0][0])
+tauErr = math.sqrt(pcov[1][1])
+
+fig = plt.figure()
+fig.suptitle('Autocorrelazione della magnetizzazione')
+ax = fig.add_subplot(111)
+ax.grid(True)
+#Mette le griglie su asse x
+#plt.xticks([i for i in range(0,lungh)])
+ax.text(10.2,0.4,r'Funzione di fit: $f(x) = A e^{-x/ \tau }$' '\n' r'$A=%lf \pm %lf$' '\n' r'$\; \tau=%lf\pm %lf$'%(popt[0],AErr,-1/popt[1],tauErr) , bbox={'facecolor':'green', 'alpha':0.5, 'pad':10})
+plt.plot(x_points,y_points,'ko',label='Original data')
+plt.plot(x,fit_fun(x,*popt),label ='fitted curve')
+plt.legend()
+plt.show()
\ No newline at end of file
diff --git a/ising/metropolis/raccolta_dati.d b/ising/metropolis/raccolta_dati.d
new file mode 100644
index 0000000..b377bb4
--- /dev/null
+++ b/ising/metropolis/raccolta_dati.d
@@ -0,0 +1,2 @@
+raccolta_dati.o: ../modules/dati/raccolta_dati.c \
+ ../include/raccolta_dati.h
diff --git a/ising/sw/Makefile~ b/ising/sw/Makefile~
new file mode 100644
index 0000000..7e4df6f
--- /dev/null
+++ b/ising/sw/Makefile~
@@ -0,0 +1,119 @@
+################################################################################
+#
+# Makefile to compile and link C programs
+#
+# Version valid for Linux machines
+#
+# "make" compiles and links the specified main programs and modules
+# using the specified libraries (if any), and produces the executables
+#
+# "make clean" removes all files created by "make"
+#
+# Dependencies on included files are automatically taken care of
+#
+################################################################################
+
+all: rmxeq mkdep mkxeq rmpmk
+.PHONY: all
+
+
+# main programs and required modules
+
+MAIN =  main
+
+MODULES = sw list mtwist
+#$(EXTRAS) # search path for modules
+
+MDIR = ../modules
+
+
+VPATH = $(MDIR)
+#VPATH = $(MDIR)/random:$(MDIR)/start:
+#$(MDIR)/extras
+
+
+
+# additional include directories
+
+INCPATH =  /usr/include/ ./include . ../include
+
+
+# additional libraries to be included
+
+LIBS = m
+
+LIBPATH =
+
+
+# scheduling and optimization options (such as -DSSE -DSSE2 -DP4)
+
+CFLAGS = -Wall -g -O3 -DSSE2
+#-O3 -DSSE2
+############################## do not change ###################################
+
+SHELL=/bin/bash
+
+CC=gcc
+
+PGMS= $(MAIN) $(MODULES)
+
+INCDIRS = $(addprefix -I,$(INCPATH))
+
+OBJECTS = $(addsuffix .o,$(MODULES))
+
+LDFLAGS = $(addprefix -L,$(LIBPATH)) $(addprefix -l,$(LIBS))
+
+# Mac OS alternate link options
+ifeq "$(OSTYPE)" "Darwin"
+LDFLAGS	= -framework Carbon -framework OpenGL -framework GLUT -lm -lGLEW
+endif
+
+
+-include $(addsuffix .d,$(PGMS))
+
+
+# rule to make dependencies
+
+$(addsuffix .d,$(PGMS)): %.d: %.c Makefile
+	@ $(CC) -MM -ansi $(INCDIRS) $< -o $@
+
+
+# rule to compile source programs
+
+$(addsuffix .o,$(PGMS)): %.o: %.c Makefile
+	$(CC) $< -c $(CFLAGS) $(INCDIRS) -o $@
+
+
+# rule to link object files
+
+$(MAIN): %: %.o $(OBJECTS) Makefile
+	$(CC) $< $(OBJECTS) $(CFLAGS) $(LDFLAGS) -o $@
+
+
+# produce executables
+
+mkxeq: $(MAIN)
+
+
+# remove old executables and old error log file
+
+rmxeq:
+	@ -rm -f $(MAIN); \
+        echo "delete old executables"
+
+
+# make dependencies
+
+mkdep:  $(addsuffix .d,$(PGMS))
+	@ echo "generate tables of dependencies"
+
+rmpmk:
+	@ -rm -rf *.d *.o *.tmp
+
+# clean directory
+
+clean:
+	@ -rm -rf *.d *.o .tmp $(MAIN)
+.PHONY: clean
+
+################################################################################