updated toByte and fromByte
Merge remote-tracking branch 'origin/master'