Added debug argument and debugMsg to wrappers.
Added name attribute to DeviceWrapper.