added PHPDoc comments