Merge pull request #7 from eaburns/eof

Don't return EOF when reading 0 bytes.
Add edit.Buffer.