Minor fixes

renamed solar.residuals
added thinning to chain.apply