Update ruby and gems
Use thread for download chapters
Use global variable to set number of parralels thread
Refactor usage of thread