Add the lacking documentation for the PermissionController.php

Adds a good amount of documentation.