Fixed a bug which caused a seg fault when pushing to Sink, also added *.swp to .gitignore