Updating to use printf instead of echo for formatting. Updated doc and example for changes
Use '?' instead of 0 for empty min or max