Several read fixes

Reading from Bytes rather than BytesInput to get better access to the
Bytes.
removed commented code
Added halfWidth/halfHeight to characterdef