Added ability to read data from byte array
Renamed constructor