improved and fixed phpdoc