Add getbyte

- Add getbyte method
- read/write test