adds developer customization to max and min

This adds in the ability to choose the max and min values of the slider
in a simple way. It adds the use of ng-model to get the value of the
slider position. Adds in function block comments for more readability.