Fixes and updates

Fixed Machine and Unit namedtuples to work with vars()
Added data decoding
Fixed connect/disconnect prints