BackupMain added, refactorings, exceptions added