Changed interface to set max number instead of number of digits. Updated readme