Add analytics script
Remove unused code, add comments for future work

I really need to start using more libraries...
Add gitignore for swp files