made controller static and updated phpdoc