Fix parsing hex values

Hex values can also have the letters a-f in them.
Merge pull request #46 from taybin/patch-1

Fix parsing hex values