added support for saving the devices' configuration
merged configuration branch