Fixed type error in ranged input setup code.
Removed deprecated range syntax from examples.