refactory with less events
adding gitignore
merge gitignore