Added 0x and 0b notation and unit tests.