radix-convert function added, validator improved