fixing PHPDoc comments and syntax