Made API compatible to DataInput/DataOutput
Create RAW by doing a write-through to DataInput/Output, and completed simple tests