adding cache functionality
modified gitignore to ignore .swp files