Add __str__ and __repr__ methods to devices and values