added nil byteChunk checks to all Reads()