Fixed a typo in a doc block and added new class to manage wordpress hooks.