Added git ignore and options to script

.gitignore now in use for vim .swp files and OS X .DS_STORE files

Script now takes arguments in the form of -s/-d etc and has functions