adding soft boundaries to the flat priors

## Introduce soft boundaries to flat priors