Moving hex.IsHex() to util.IsHex() and using encoding/hex instead of internal hex package
- removed hex package (use encoding/hex instead) and reformatted code