added support for hex numbers
added upper bound of 0x7fffffff to hex numbers