Add the ability to support per-dimension scaling.
Rename the variables to something more useful.
Merge pull request #5 from schmidtw/master

 Add the ability to support per-dimension scaling.