Added events for git hooks
some cleanup and path fixes