added rebinned data, and error checking on fits