Update for .gitignore and fixed function to twitter snippets