Added tests to uploadPackage and a lot other small changes
Added *.swp to gitignore