Bug Fix

Just a bug fix and implementation of missing readByte writeByte functionality.