Improving import/export features of the configuration

plus, better exception handling
Merge pull request #101 from roozbehf/master

Improving import/export features of the configuration