minor changes in the reading files.
improved version of rayleigh_fit. still a lot to do.