Backup / restore implemented, bugs fixed