Added phpdoc to snippets and modified README file.