Modified htoi to be better code (changing the while loop to a for loop), and removed the capability of the function to remove the "0x" in front of the number