Improve adaptive binning close to borders. Add 1D template reweighting. Add automatic control plots creation.