Added comments with explanations.

For restoreWithPrompts.sh script.