Refactored event into its own module and added gitignore