Merge pull request #1 from ungerik/master

fixed returned errors in Config.check()
Merge pull request #2 from ungerik/master

Cleanup in openPort
added Connection struct