Added ability to save device configuration between sessions; closes #38