impl readbit, add read/write byte