Added more methods to set the limits of parameters.
Polished model API.