updated phpdocs and readme.md