ENH: Changed parameter index to function scope.
ENH: Changed parameter index to function scope.

Changed parameter index to function scope rather than script scope.
This is done for the sake of clarity. __set() continues to have a
script scope because this allows for unlimited parameters be set.

Added comments for clarity.

chyves/chyves