Add the Ability to set upper or lower bounds

The code currently only allows you to set both upper and lower, this modification will allow user to set just a lower bound or just an upper bound depending on there needs.