made error massage more meaningful and added bitWidth and byteSize