Added call waitForCompletion() 

It blocks until downloading and seeding is done.
See Issue #37 for details.