Documents can be saved, but curl progress function doesn't work.
Progressbar works, although it should really probe the downloading part of curl handling.
Better messaging.
Minor refinements.