Renamed the file.
Added command line arguments to specify the version. Added code to check for the version specified for releases and download the specified version if it is available.
Added code to get the latest snapshot version if not specified, and to use the version if specified, and download it if available.
Improved exception messages.