Added gitignore and refactored code
Added .gitignore
Remove idea from logging (pre-gitignore)