Fixes and completes phpdoc