rewritten config, removed old stuff of old implementation. Implemented config backup and first-run behavior