Add a few more functions in hard drive, toHexString, Modify read and write