More bytearrays

Moved all internal arrays of bytes to bytearrays.
Results are still arrays, because it could be 16 bit