Add license
Add sample usage and update phpdoc comments