Create device.nut

Added device code