Added a method to convert an unsigned byte into an integer.
Added a method to convert a byte into a hexadecimal string.
Modified byteArrayToInt() to accept arrays with a size lower than four.