fixed up operations for number bases other than 10
added xor to valid operations