Changed PUT chunk and added finishupload explicitly
Made some improvements