Added some tests, fixed a bug.
Make Buffer its own thing.
Cleanup phpunit file.