Added exception handling into continuous upload: it will resume after connection failure. Added lots of comments