Add polling script and update gitignore