fixed Numerics::numToInt method && tidied up code