Changed integers in bitwise arithmetic to hex

Changed most (all?) of the integer constants used in bitwise ANDs and
ORs to their hex representation to make them more transparent. Also
started making any progress at all grokking the internals of this mod :D
Merge pull request #20 from Murray65536/ChangeIntsToHex

Changed integers in bitwise arithmetic to hex... Hopefully solving most of issue #5 at the same time.