better error management for downloadingand some small enhancements
Merge pull request #53 from NicolasKessler/master

better error management for downloading and some small enhancements