Did some more commenting, but I also fixed the restore functions so
that progress is resumed when you open a file back up.