updating phpdoc and removing some warning