added missing templates and PHPDoc