Added global action hooks to register and activate functions
Added @todo