refactored, confirm, and text

I refactored the code to be simpler, include comments better
spaces out code into 'paragraphs' according to functionality,
       created confirm() function that allows user to confirm multiple
       times in the script before going on, and text that explains the
       whole script at the beginning (followed by a confirm()).