Added BACKUP/RESTORE functionality, updated docs, major refactoring all over'