Fixed requirements.txt
Join all threads before exit

Caused problems with tests. Joins all thread to block when the download function is called.