Updated .gitignore to skit swap files
Added test coverage