missing "fi"/added downloads options for wps tools

missing fi at end of pingen prevented script from running