Adds unique id to elements.
Polishes the code generation for text, scale, and number.
Renames lower to min and upper to max to match HTML more closely.