v2 of script.

+ last page is now dynamic
+ better "error handling"
+ Existing file? Skip it.