Close connection when authentication fails
Added untracked files??
Added template config file
Merge pull request #4 from michele-bertasi/master

Added bugfixes and config file template