updated PHPDoc and documentation; renamed parts connected to template variables