auto scale: implemented max units.

related to #154.
auto scale: respecting minimum limit of units.

related to #154.