add Register, runHooks methods and commented out built-in stats logger and its usage
comment stats related test cases and add one for testing hooks
update README.md with hooks usage