Initial functions to read files, compute lambda for Poisson