Improvements to download script

- error handling
- verbose mode
- perldoc