Refactoring of functionHooks.
Remove generated stuff
Change gitignore.