Made hooks work with the new modules structure and added argument
support to hooks
Allow hooks to have arguments