now will check for compilation errors first and then continue with compilation

updated to check for compilation errors first and then compile
added .swp to .gitignore