Add logging and gitignore