update hook implemented for cron
update hook implementation
updated documentation
updated documentation