Makes both gaussian and poissonian realizations, calculates the errors and save them in a file