Finished to rewrite script for bias scans (need to rewrite to unify it for residuals, inner and outer ladders and mean vs. z)