Basic reader working.
Fix reader to detect end of file.
Added basic unit tests (requires PHPUnit).
Add some basic usage info to README.