#39 - fixed.
#36 - edited isxdigit to use isdigit
Merge pull request #40 from ahebert/master

#39 - fixed.