Added writtenBytes() method, fixed isReadOk() return string