No need for variable
Added detection of number type
Updated documentation