pageScanner - Indev update

Added functionality to permit the script to be run multiple times without choking on its own variables.