Composer changes

Hi

I have made some changes to the lib!

1. composer.json does not have hard coded version anymore, so it will be easy to update it.
2. As your lib does not use PSR-0, classes could still be autoloaded with classmap property.
3. require is not needed anymore.
4. README updated.
5. Error class is included in PHPUnit test.