simplified hexstring to hex byte array function, cleanup