Update hooks.inc.php

* Improve file documentation
* Remove PHP closing tag