Added Length method to BaseIO (required by subclasses)
Changed DeviceIO to BaseIO