Fix optional download paramter + add region option

The download paramter was supposed to be optional. This breaks in line 16, when download[0] is unconditionally accessed.

The region parameter is needed to get the correct download url for some regions.