Updated Device and Port class
Updated connection class