added function to compute binned residuals for binomial model and cleaned auxiliary files from repo