add README.md, update test, update phpdoc