Add autoflush value 'immediately' and improve gitignore