Some changes to streams

Added data unit to simulate C array pointer
Removed readByte() and writeByte() for consistency