FEATURE: added unregister device functionality. and register device.