API update and phpdoc.dist.xml and .gitignore