typo: fixed phpdoc and error messages