[fixed]created new files misc_tools.(c|h) and moved hex_string_to_bin() there.
Fixing broken commit