Put hex buffer writing in nth-lib
Replaced sprintf with Write_Hex_Nth_Number