commented up the hex functions
implemented hex->dec conversion