added missing parenthesis to array declaration
added hooks to all of the events to allow users to use the add_action function based on them