Added some comments to device controller