adding .log and .key files to .gitignore
removing useless lines
adding vim tmp files to .gitignore
adding isConnected function