added functions to implement
changed signature in deviceState
implemented get devices method