Version 1.5 Script now exits nicely

Rewrote page fetching function to avoid file name errors.