JSDoc and PHPDoc updated