added functions to get device name and cluster name.