add phpdoc comments